Optimal. Leaf size=66 \[ -\frac {3 a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{d}-\frac {a^2 \cot (c+d x)}{d \sqrt {a+a \sin (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {2841, 21, 2852,
212} \begin {gather*} -\frac {3 a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a \sin (c+d x)+a}}\right )}{d}-\frac {a^2 \cot (c+d x)}{d \sqrt {a \sin (c+d x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 212
Rule 2841
Rule 2852
Rubi steps
\begin {align*} \int \csc ^2(c+d x) (a+a \sin (c+d x))^{3/2} \, dx &=-\frac {a^2 \cot (c+d x)}{d \sqrt {a+a \sin (c+d x)}}-a \int \frac {\csc (c+d x) \left (-\frac {3 a}{2}-\frac {3}{2} a \sin (c+d x)\right )}{\sqrt {a+a \sin (c+d x)}} \, dx\\ &=-\frac {a^2 \cot (c+d x)}{d \sqrt {a+a \sin (c+d x)}}+\frac {1}{2} (3 a) \int \csc (c+d x) \sqrt {a+a \sin (c+d x)} \, dx\\ &=-\frac {a^2 \cot (c+d x)}{d \sqrt {a+a \sin (c+d x)}}-\frac {\left (3 a^2\right ) \text {Subst}\left (\int \frac {1}{a-x^2} \, dx,x,\frac {a \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{d}\\ &=-\frac {3 a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{d}-\frac {a^2 \cot (c+d x)}{d \sqrt {a+a \sin (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(180\) vs. \(2(66)=132\).
time = 0.41, size = 180, normalized size = 2.73 \begin {gather*} -\frac {a \csc ^4\left (\frac {1}{2} (c+d x)\right ) \sqrt {a (1+\sin (c+d x))} \left (2 \cos \left (\frac {1}{2} (c+d x)\right )-2 \sin \left (\frac {1}{2} (c+d x)\right )+3 \left (\log \left (1+\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (1-\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )\right ) \sin (c+d x)\right )}{d \left (1+\cot \left (\frac {1}{2} (c+d x)\right )\right ) \left (\csc \left (\frac {1}{4} (c+d x)\right )-\sec \left (\frac {1}{4} (c+d x)\right )\right ) \left (\csc \left (\frac {1}{4} (c+d x)\right )+\sec \left (\frac {1}{4} (c+d x)\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.72, size = 103, normalized size = 1.56
method | result | size |
default | \(-\frac {\left (1+\sin \left (d x +c \right )\right ) \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}\, \sqrt {a}\, \left (3 \arctanh \left (\frac {\sqrt {a -a \sin \left (d x +c \right )}}{\sqrt {a}}\right ) a \sin \left (d x +c \right )+\sqrt {a -a \sin \left (d x +c \right )}\, \sqrt {a}\right )}{\sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(103\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 268 vs.
\(2 (58) = 116\).
time = 0.34, size = 268, normalized size = 4.06 \begin {gather*} \frac {3 \, {\left (a \cos \left (d x + c\right )^{2} - {\left (a \cos \left (d x + c\right ) + a\right )} \sin \left (d x + c\right ) - a\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - 4 \, {\left (\cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right ) + 3\right )} \sin \left (d x + c\right ) - 2 \, \cos \left (d x + c\right ) - 3\right )} \sqrt {a \sin \left (d x + c\right ) + a} \sqrt {a} - 9 \, a \cos \left (d x + c\right ) + {\left (a \cos \left (d x + c\right )^{2} + 8 \, a \cos \left (d x + c\right ) - a\right )} \sin \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right )^{2} - 1\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 1}\right ) + 4 \, {\left (a \cos \left (d x + c\right ) - a \sin \left (d x + c\right ) + a\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{4 \, {\left (d \cos \left (d x + c\right )^{2} - {\left (d \cos \left (d x + c\right ) + d\right )} \sin \left (d x + c\right ) - d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 125 vs.
\(2 (58) = 116\).
time = 0.49, size = 125, normalized size = 1.89 \begin {gather*} -\frac {\sqrt {2} {\left (3 \, \sqrt {2} a \log \left (\frac {{\left | -2 \, \sqrt {2} + 4 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}{{\left | 2 \, \sqrt {2} + 4 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}\right ) \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) + \frac {4 \, a \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{2 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1}\right )} \sqrt {a}}{4 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{3/2}}{{\sin \left (c+d\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________